//
//  testDelegateViewController.swift
//  CMDB
//
//  Created by 曹桂祥 on 2017/5/10.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

class ShowLogoViewController: CustomNormalContentViewController {
    
    var testBtn : UIButton?
    
        override func buildTitleView() {
            super.buildTitleView()
    
            let iconView       = UIImageView(image: UIImage(named: "cmdb"))
    
            let middleY        = (titleView?.middleY)! + 8
    
            iconView.center    = CGPoint(x: (titleView?.middleX)!, y: middleY)
    
            titleView?.addSubview(iconView)
    
            testBtn = UIButton()
    
            testBtn!.setImage(UIImage(named: "test头像"), forState: .Normal)
    
//            testBtn.addTarget(self, action: #selector(testButtonClicked), forControlEvents: .TouchUpInside)
    
            testBtn!.frame = CGRect(x: 15, y: 27, width: 30, height: 30)
    
            testBtn!.layer.cornerRadius = 3
    
            testBtn!.layer.masksToBounds = true
            
            titleView?.addSubview(testBtn!)
        }

}
